Repository navigation
perf(repartition): coordinate bounded inputs once - #27740
Rich-T-kid wants to merge 4 commits into
Conversation
Signed-off-by: Richard Baah <richiebbaah@Gmail.com>
Signed-off-by: Richard Baah <richiebbaah@Gmail.com>
|
run benchmark tpch |
|
run benchmark tpch |
|
run benchmark tpch |
|
run benchmark tpch |
|
run benchmark tpch |
|
run benchmark tpch |
|
run benchmark tpch |
|
run benchmark tpch |
|
run benchmark tpch |
|
run benchmark tpch |
|
run benchmark tpch |
|
run benchmark tpch |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing b10f13a (b10f13a) to 8a4e97e diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "16"
baseline:
ref: "8a4e97e53ebee18e6761dd67f4dd4e92caf244c6"
changed:
ref: "b10f13ab26f320d275b9313e3642933b52e18244"Results will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing b10f13a (b10f13a) to 8a4e97e diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "96"
baseline:
ref: "8a4e97e53ebee18e6761dd67f4dd4e92caf244c6"
changed:
ref: "b10f13ab26f320d275b9313e3642933b52e18244"Results will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing b10f13a (b10f13a) to 8a4e97e diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "24"
baseline:
ref: "8a4e97e53ebee18e6761dd67f4dd4e92caf244c6"
changed:
ref: "b10f13ab26f320d275b9313e3642933b52e18244"Results will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing b10f13a (b10f13a) to 8a4e97e diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "64"
baseline:
ref: "8a4e97e53ebee18e6761dd67f4dd4e92caf244c6"
changed:
ref: "b10f13ab26f320d275b9313e3642933b52e18244"Results will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing b10f13a (b10f13a) to 8a4e97e diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "32"
baseline:
ref: "8a4e97e53ebee18e6761dd67f4dd4e92caf244c6"
changed:
ref: "b10f13ab26f320d275b9313e3642933b52e18244"Results will be posted here when complete File an issue against this benchmark runner |
commented
Nov 25, 2026
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing b10f13a (b10f13a) to 8a4e97e diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "128"
baseline:
ref: "8a4e97e53ebee18e6761dd67f4dd4e92caf244c6"
changed:
ref: "b10f13ab26f320d275b9313e3642933b52e18244"Results will be posted here when complete File an issue against this benchmark runner |
commented
Nov 25, 2026
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing b10f13a (b10f13a) to 8a4e97e diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "12"
baseline:
ref: "8a4e97e53ebee18e6761dd67f4dd4e92caf244c6"
changed:
ref: "b10f13ab26f320d275b9313e3642933b52e18244"Results will be posted here when complete File an issue against this benchmark runner |
commented
Nov 25, 2026
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing b10f13a (b10f13a) to 8a4e97e diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "8"
baseline:
ref: "8a4e97e53ebee18e6761dd67f4dd4e92caf244c6"
changed:
ref: "b10f13ab26f320d275b9313e3642933b52e18244"Results will be posted here when complete File an issue against this benchmark runner |
commented
Nov 25, 2026
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing b10f13a (b10f13a) to 8a4e97e diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "16"
baseline:
ref: "8a4e97e53ebee18e6761dd67f4dd4e92caf244c6"
changed:
ref: "b10f13ab26f320d275b9313e3642933b52e18244"CPU Details (lscpu)Details
Resource Usagetpch — base (merge-base)
tpch — branch
File an issue against this benchmark runner |
commented
Nov 25, 2026
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing b10f13a (b10f13a) to 8a4e97e diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "24"
baseline:
ref: "8a4e97e53ebee18e6761dd67f4dd4e92caf244c6"
changed:
ref: "b10f13ab26f320d275b9313e3642933b52e18244"CPU Details (lscpu)Details
Resource Usagetpch — base (merge-base)
tpch — branch
File an issue against this benchmark runner |
commented
Nov 25, 2026
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing b10f13a (b10f13a) to 8a4e97e diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "96"
baseline:
ref: "8a4e97e53ebee18e6761dd67f4dd4e92caf244c6"
changed:
ref: "b10f13ab26f320d275b9313e3642933b52e18244"CPU Details (lscpu)Details
Resource Usagetpch — base (merge-base)
tpch — branch
File an issue against this benchmark runner |
commented
Nov 25, 2026
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing b10f13a (b10f13a) to 8a4e97e diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "64"
baseline:
ref: "8a4e97e53ebee18e6761dd67f4dd4e92caf244c6"
changed:
ref: "b10f13ab26f320d275b9313e3642933b52e18244"CPU Details (lscpu)Details
Resource Usagetpch — base (merge-base)
tpch — branch
File an issue against this benchmark runner |
commented
Nov 25, 2026
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing b10f13a (b10f13a) to 8a4e97e diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "12"
baseline:
ref: "8a4e97e53ebee18e6761dd67f4dd4e92caf244c6"
changed:
ref: "b10f13ab26f320d275b9313e3642933b52e18244"CPU Details (lscpu)Details
Resource Usagetpch — base (merge-base)
tpch — branch
File an issue against this benchmark runner |
commented
Nov 25, 2026
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing b10f13a (b10f13a) to 8a4e97e diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "8"
baseline:
ref: "8a4e97e53ebee18e6761dd67f4dd4e92caf244c6"
changed:
ref: "b10f13ab26f320d275b9313e3642933b52e18244"CPU Details (lscpu)Details
Resource Usagetpch — base (merge-base)
tpch — branch
File an issue against this benchmark runner |
commented
Nov 25, 2026
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing b10f13a (b10f13a) to 8a4e97e diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "32"
baseline:
ref: "8a4e97e53ebee18e6761dd67f4dd4e92caf244c6"
changed:
ref: "b10f13ab26f320d275b9313e3642933b52e18244"CPU Details (lscpu)Details
Resource Usagetpch — base (merge-base)
tpch — branch
File an issue against this benchmark runner |
commented
Nov 25, 2026
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing b10f13a (b10f13a) to 8a4e97e diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "128"
baseline:
ref: "8a4e97e53ebee18e6761dd67f4dd4e92caf244c6"
changed:
ref: "b10f13ab26f320d275b9313e3642933b52e18244"CPU Details (lscpu)Details
Resource Usagetpch — base (merge-base)
tpch — branch
File an issue against this benchmark runner |
commented
Nov 25, 2026
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing b10f13a (b10f13a) to 8a4e97e diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "384"
baseline:
ref: "8a4e97e53ebee18e6761dd67f4dd4e92caf244c6"
changed:
ref: "b10f13ab26f320d275b9313e3642933b52e18244"Results will be posted here when complete File an issue against this benchmark runner |
commented
Nov 25, 2026
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing b10f13a (b10f13a) to 8a4e97e diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "192"
baseline:
ref: "8a4e97e53ebee18e6761dd67f4dd4e92caf244c6"
changed:
ref: "b10f13ab26f320d275b9313e3642933b52e18244"Results will be posted here when complete File an issue against this benchmark runner |
commented
Nov 25, 2026
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing b10f13a (b10f13a) to 8a4e97e diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "512"
baseline:
ref: "8a4e97e53ebee18e6761dd67f4dd4e92caf244c6"
changed:
ref: "b10f13ab26f320d275b9313e3642933b52e18244"Results will be posted here when complete File an issue against this benchmark runner |
commented
Nov 25, 2026
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing b10f13a (b10f13a) to 8a4e97e diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "256"
baseline:
ref: "8a4e97e53ebee18e6761dd67f4dd4e92caf244c6"
changed:
ref: "b10f13ab26f320d275b9313e3642933b52e18244"Results will be posted here when complete File an issue against this benchmark runner |
commented
Nov 25, 2026
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing b10f13a (b10f13a) to 8a4e97e diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "192"
baseline:
ref: "8a4e97e53ebee18e6761dd67f4dd4e92caf244c6"
changed:
ref: "b10f13ab26f320d275b9313e3642933b52e18244"CPU Details (lscpu)Details
Resource Usagetpch — base (merge-base)
tpch — branch
File an issue against this benchmark runner |
commented
Nov 25, 2026
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing b10f13a (b10f13a) to 8a4e97e diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "256"
baseline:
ref: "8a4e97e53ebee18e6761dd67f4dd4e92caf244c6"
changed:
ref: "b10f13ab26f320d275b9313e3642933b52e18244"CPU Details (lscpu)Details
Resource Usagetpch — base (merge-base)
tpch — branch
File an issue against this benchmark runner |
commented
Nov 25, 2026
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing b10f13a (b10f13a) to 8a4e97e diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "384"
baseline:
ref: "8a4e97e53ebee18e6761dd67f4dd4e92caf244c6"
changed:
ref: "b10f13ab26f320d275b9313e3642933b52e18244"CPU Details (lscpu)Details
Resource Usagetpch — base (merge-base)
tpch — branch
File an issue against this benchmark runner |
commented
Nov 25, 2026
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing b10f13a (b10f13a) to 8a4e97e diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "512"
baseline:
ref: "8a4e97e53ebee18e6761dd67f4dd4e92caf244c6"
changed:
ref: "b10f13ab26f320d275b9313e3642933b52e18244"CPU Details (lscpu)Details
Resource Usagetpch — base (merge-base)
tpch — branch
File an issue against this benchmark runner |
Which issue does this PR close?
Rationale for this change
Bounded unordered
RepartitionExeccurrently performs completion signaling, coalescer finalization bookkeeping, sender cloning, and spill-writer cloning for every input/output pair. At high partition counts, that coordination grows quadratically.This PR is stacked on #27707 at
8a4e97e53ebee18e6761dd67f4dd4e92caf244c6and must remain draft until that PR lands or this branch is rebased.What changes are included in this PR?
Bounded unordered producers share one output-channel set. One coordinator waits for producers, propagates the first error after cancellation completes, finalizes each output coalescer once, and closes channels by dropping the final senders. Pending memory reservations are released on cancellation. Ordered repartition and unbounded inputs keep their existing paths.
For
Pinputs and outputs, completion messages go fromP²to zero, finalizer operations fromP²toP, waiter tasks fromPto one coordinator, and spill-sink clones fromP²to zero.What is the testing strategy for this PR?
The complete
datafusion-physical-plansuite passes, including focused success, upstream error/panic, cancellation, early-drop, spill, and ordered-spill coverage. Format, diff-check, and workspace all-target/all-feature Clippy pass. The extended workspace test command was also run, but 139 file-backed tests could not start because this worktree did not have the declared Arrow/DataFusion test-data submodules (ARROW_TEST_DATAwas unset); the changed crate's complete suite passed independently.The table is a disposable out-of-tree harness at exact baseline
8a4e97e5versusb10f13ab, with separate release targets, 14 measured samples per side/cell, balanced ascending/descending order, 64 rows per input, and concurrent output polling. Every run produced the expected row count and checksum, one batch per output, and zero spills. Setup was noisy and regressed at 24 (+0.6%), 96 (+3.7%), and 256 (+3.2%) partitions.Are there any user-facing changes?
No.